<html>
<head><meta charset="utf-8"><title>using simd in wasm32 target · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/using.20simd.20in.20wasm32.20target.html">using simd in wasm32 target</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="199442373"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/using%20simd%20in%20wasm32%20target/near/199442373" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Narek Galstyan <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/using.20simd.20in.20wasm32.20target.html#199442373">(Jun 02 2020 at 01:36)</a>:</h4>
<p>Hi Everyone, I am new here, excuse me if this is the wrong place to ask. I have an issue with getting simd intrinsics written in rust to compile to WebAssembly (using wasm-pack or cargo directly). I described it in detail here ` <a href="https://stackoverflow.com/questions/62120638/enabling-target-feature-gated-language-features-when-using-wasm32-simd-intrinsic">https://stackoverflow.com/questions/62120638/enabling-target-feature-gated-language-features-when-using-wasm32-simd-intrinsic</a> <br>
Could someone help me understand why my code is not working?</p>



<a name="199455198"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/using%20simd%20in%20wasm32%20target/near/199455198" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/using.20simd.20in.20wasm32.20target.html#199455198">(Jun 02 2020 at 06:49)</a>:</h4>
<p>You will need to recompile libcore with <code>target_feature=simd128</code> enabled.</p>



<a name="199590950"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/using%20simd%20in%20wasm32%20target/near/199590950" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Narek Galstyan <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/using.20simd.20in.20wasm32.20target.html#199590950">(Jun 03 2020 at 08:14)</a>:</h4>
<p>Thanks, have been trying to compile libcore with that enabled but am getting various errors. Is there a tracking issue for simd128?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>